feat(broker): make Hyperliquid the evidence default#251
Merged
Conversation
|
🧙 Sourcery has finished reviewing your pull request! Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In
build_broker_evidence_readiness_report,recommended_first_corridoris now hardcoded to"hyperliquid"even when Hyperliquid is not ready; consider either deriving this from actual readiness/priority or adding an explicit code comment to document why a non-ready corridor can still be recommended. - The corridor resolution logic in
build_broker_evidence_readiness_reportis now encoded as a series ofif/elifchecks; if you expect to add more venues, it might be worth centralizing the priority ordering in a small helper (e.g., a ranked list of corridors) so the selection rules stay easy to adjust and reason about.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `build_broker_evidence_readiness_report`, `recommended_first_corridor` is now hardcoded to `"hyperliquid"` even when Hyperliquid is not ready; consider either deriving this from actual readiness/priority or adding an explicit code comment to document why a non-ready corridor can still be recommended.
- The corridor resolution logic in `build_broker_evidence_readiness_report` is now encoded as a series of `if/elif` checks; if you expect to add more venues, it might be worth centralizing the priority ordering in a small helper (e.g., a ranked list of corridors) so the selection rules stay easy to adjust and reason about.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make the first supervised broker evidence pass Hyperliquid-first instead of Kraken-first, so the readiness helper and operator guidance match the active execution direction.
Changes included:
broker_evidence_readinessprefer Hyperliquid when both corridors are availablerecommended_first_corridor: hyperliquidWhy
The repo already had the operational path for supervised Hyperliquid evidence.
What was still inconsistent was the default evidence recommendation and the top-level narrative, which still suggested Kraken-first behavior. This slice removes that friction without touching submit, signing, or live execution behavior.
Scope
This PR does not:
It only makes Hyperliquid the active evidence default and aligns the operator-facing docs with that direction.
Validation
Validated with:
python -m pytest -q test/test_broker_evidence_readiness.py test/test_app_cli.pypython main.py --broker-evidence-readiness-outdir outputs\\broker_evidence_demo --broker-evidence-corridor hyperliquidgit diff --checkNotes
Closes #226
Summary by Sourcery
Make Hyperliquid the primary execution venue and broker evidence corridor while keeping Kraken as a compatibility/reference backend, and align readiness logic, tests, and documentation with this direction.
Enhancements:
Documentation:
Tests: